<script setup>
import { ElTabs, ElTabPane } from 'element-plus';
import { ATabsProps } from './tabs';

defineProps(ATabsProps);
</script>
<template>
  <el-tabs v-bind="{ ...$attrs, ...$props }">
    <el-tab-pane v-for="(item, index) in columns" :key="index" v-bind="item">
      <template v-if="item.slotName" #default="scope">
        <slot :name="item.slotName" :scope="scope"></slot>
      </template>
    </el-tab-pane>
  </el-tabs>
</template>

<style lang="scss" scoped></style>
